package ar.com.sne.cfg;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ConfigurationLabel {
	public static String CONFIG_FILE ="sne_label.properties";
	public Properties properties;
	private static ConfigurationLabel labelConstants = new ConfigurationLabel();

	public String getProperty(String key) {
		return properties.getProperty(key);
	}

	private ConfigurationLabel() {
		properties = new Properties();
		try {
			InputStream stream = this.getClass().getClassLoader().getResourceAsStream(CONFIG_FILE);
			
			properties.load(stream);
			
		} catch (FileNotFoundException e) {
			System.out.println(e);
			System.exit(4);
		} catch (IOException e) {
		}
	}

	public static ConfigurationLabel getInstance() {
		return labelConstants;
	}

}
